//
//  JddPickerView.m
//  PlayBall
//
//  Created by Edward Zhang on 12-5-27.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddPickerView.h"

@implementation JddPickerView
GET_INSTANCE_VIEW_IMPLEMENT(JddPickerView)

@synthesize pickerView;
@synthesize activityIndicatorView;
@synthesize delegate;


- (void)loadContentView{
    NSArray *viewArray = [[NSBundle mainBundle] loadNibNamed:@"JddPickerView" owner:self options:nil];
    _contentView = [viewArray objectAtIndex:0];

}

- (IBAction)okButtonClicked:(id)sender{
    [self.delegate performSelector:@selector(jddPickerViewOkButtonClicked)];
}

- (IBAction)cancelButtonClicked:(id)sender{
    [self.delegate performSelector:@selector(jddPickerViewCancelButtonClicked)];
}

-(void)awakeFromNib
{

}
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
